inherited FPesquisaTransferenciaEstoque: TFPesquisaTransferenciaEstoque
  Left = 236
  Top = 122
  Caption = 'Pesquisa Transfer'#234'ncia  Estoque'
  ClientHeight = 325
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 13
  inherited Panel2: TPanel
    inherited BtnLimpar: TBitBtn
      OnClick = BtnLimparClick
    end
    inherited BtnSelecionar: TBitBtn
      OnClick = BtnSelecionarClick
    end
  end
  inherited Panel1: TPanel
    Height = 284
    object Label3: TLabel [0]
      Left = 8
      Top = 40
      Width = 58
      Height = 13
      Caption = 'Local Sa'#237'da'
    end
    object Label2: TLabel [1]
      Left = 209
      Top = 2
      Width = 38
      Height = 13
      Caption = 'Per'#237'odo'
    end
    object Label1: TLabel [2]
      Left = 209
      Top = 40
      Width = 108
      Height = 13
      Caption = 'Tipo Movimento Sa'#237'da'
    end
    object Label10: TLabel [3]
      Left = 8
      Top = 135
      Width = 46
      Height = 13
      Caption = 'Empresas'
    end
    object Label7: TLabel [4]
      Left = 110
      Top = 2
      Width = 55
      Height = 13
      Caption = 'Documento'
    end
    object Label5: TLabel [5]
      Left = 300
      Top = 20
      Width = 6
      Height = 13
      Caption = 'a'
    end
    object Label4: TLabel [6]
      Left = 8
      Top = 2
      Width = 33
      Height = 13
      Caption = 'C'#243'digo'
    end
    object Label6: TLabel [7]
      Left = 8
      Top = 76
      Width = 66
      Height = 13
      Caption = 'Local Entrada'
    end
    object Label8: TLabel [8]
      Left = 209
      Top = 76
      Width = 116
      Height = 13
      Caption = 'Tipo Movimento Entrada'
    end
    inherited DBGrid1: TDBGrid
      Top = 189
      Height = 74
      TabOrder = 10
      Columns = <
        item
          Expanded = False
          FieldName = 'TRANSFEST_CODIGO'
          Title.Caption = 'Transfer'#234'ncia'
          Width = 70
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'TRANSFEST_DATA'
          Title.Caption = 'Data'
          Width = 66
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'TRANSFEST_DOCUMENTO'
          Title.Caption = 'Documento'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'LOCALSAIDA'
          Title.Caption = 'Local Sa'#237'da'
          Width = 238
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'TIPOMOVIMENTOSAIDA'
          Title.Caption = 'Tipo Movimento Sa'#237'da'
          Width = 247
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'LOCALENTRADA'
          Title.Caption = 'Local entrada'
          Width = 230
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'TIPOMOVIMENTOENTRADA'
          Title.Caption = 'Tipo Movimento Entrada'
          Width = 237
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ITENSTRANSFEST_CODIGO'
          Title.Caption = 'Item'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PROD_DESCRICAOENT'
          Title.Caption = 'Produto'
          Width = 287
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ITENSTRANSFEST_QUANTIDADE'
          Title.Caption = 'Quantidade'
          Visible = True
        end>
    end
    inherited Panel3: TPanel
      Top = 263
      TabOrder = 11
    end
    object DBLCBLocalSaida: TDBLookupComboBox
      Left = 8
      Top = 54
      Width = 197
      Height = 21
      KeyField = 'LOC_CODIGO'
      ListField = 'LOC_DESCRICAO'
      ListSource = DSLocalSaida
      TabOrder = 4
      OnKeyDown = DBLCBLocalSaidaKeyDown
    end
    object DEIni: TDateEdit
      Left = 209
      Top = 16
      Width = 89
      Height = 21
      NumGlyphs = 2
      TabOrder = 2
    end
    object DBLCBTipoMovimentoSaida: TDBLookupComboBox
      Left = 209
      Top = 54
      Width = 197
      Height = 21
      KeyField = 'TIPMOVEST_CODIGO'
      ListField = 'TIPMOVEST_DESCRICAO'
      ListSource = DSTipoMovimentoSaida
      TabOrder = 5
      OnKeyDown = DBLCBLocalSaidaKeyDown
    end
    object CkBTodasEmpresas: TCheckBox
      Left = 8
      Top = 119
      Width = 115
      Height = 17
      Caption = 'Todas as Empresas'
      TabOrder = 8
      OnClick = CkBTodasEmpresasClick
    end
    object CLBEmpresas: TCheckListBox
      Left = 1
      Top = 149
      Width = 409
      Height = 40
      Align = alBottom
      Columns = 1
      ItemHeight = 13
      TabOrder = 9
    end
    object EDocumento: TEdit
      Left = 110
      Top = 16
      Width = 91
      Height = 21
      TabOrder = 1
    end
    object DEFim: TDateEdit
      Left = 312
      Top = 16
      Width = 89
      Height = 21
      NumGlyphs = 2
      TabOrder = 3
    end
    object ECodigo: TEdit
      Left = 8
      Top = 16
      Width = 98
      Height = 21
      TabOrder = 0
      OnKeyPress = ECodigoKeyPress
    end
    object DBLCBLocalEntrada: TDBLookupComboBox
      Left = 8
      Top = 90
      Width = 197
      Height = 21
      KeyField = 'LOC_CODIGO'
      ListField = 'LOC_DESCRICAO'
      ListSource = DSLocalSaida
      TabOrder = 6
      OnKeyDown = DBLCBLocalSaidaKeyDown
    end
    object DBLCBtipoMovimentoEntrada: TDBLookupComboBox
      Left = 209
      Top = 90
      Width = 197
      Height = 21
      KeyField = 'TIPMOVEST_CODIGO'
      ListField = 'TIPMOVEST_DESCRICAO'
      ListSource = DSTipoMovimentoEntrada
      TabOrder = 7
      OnKeyDown = DBLCBLocalSaidaKeyDown
    end
  end
  inherited QPesquisa: TQuery
    SQL.Strings = (
      'Select TRANSFEST_CODIGO,TRANSFEST_DATA'
      
        ',LOCSAID.LOC_DESCRICAO AS LOCALSAIDA,LOCENT.LOC_DESCRICAO AS LOC' +
        'ALENTRADA'
      ',TIPMOVSAID.TIPMOVEST_DESCRICAO AS TIPOMOVIMENTOSAIDA'
      ',TIPMOVENT.TIPMOVEST_DESCRICAO AS TIPOMOVIMENTOENTRADA'
      ',TRANSFEST_DOCUMENTO'
      ',ITENSTRANSFEST_CODIGO'
      ',ITENSTRANSFEST_QUANTIDADE,PROD_DESCRICAOENT'
      ''
      
        'From ITENSTRANSFERENCIAESTOQUE INNER JOIN TRANSFERENCIAESTOQUE O' +
        'N ITENSTRANSFEST_TRANSFESTOQUE =  TRANSFEST_CODIGO'
      '     INNER JOIN PRODUTO ON ITENSTRANSFEST_PRODUTO = PROD_CODIGO'
      
        '     INNER JOIN LOCAL LOCSAID ON TRANSFEST_LOCAL1 = LOCSAID.LOC_' +
        'CODIGO'
      
        '     INNER JOIN LOCAL LOCENT ON TRANSFEST_LOCAL2 = LOCENT.LOC_CO' +
        'DIGO'
      
        '     INNER JOIN TIPOMOVIMENTOESTOQUE TIPMOVSAID ON TRANSFEST_TIP' +
        'OMOVIMENTO1 = TIPMOVSAID.TIPMOVEST_CODIGO'
      
        '     INNER JOIN TIPOMOVIMENTOESTOQUE TIPMOVENT ON TRANSFEST_TIPO' +
        'MOVIMENTO2 = TIPMOVENT.TIPMOVEST_CODIGO'
      ''
      '')
    Left = 160
    Top = 169
  end
  inherited DSPesquisa: TDataSource
    Left = 200
    Top = 169
  end
  object DSLocalSaida: TDataSource
    DataSet = DMGestao.QLocal
    Left = 96
    Top = 88
  end
  object DSTipoMovimentoSaida: TDataSource
    DataSet = QTipoMovimentoSaida
    Left = 344
    Top = 96
  end
  object QTipoMovimentoSaida: TQuery
    Active = True
    DatabaseName = 'base'
    SQL.Strings = (
      'select * from TipoMovimentoEstoque'
      ''
      'Where  TIPMOVEST_ENTRADASAIDA = '#39'Saida'#39
      ''
      'Order By TipMovEst_Descricao;')
    Left = 309
    Top = 96
  end
  object QTipoMovimentoEntrada: TQuery
    Active = True
    DatabaseName = 'base'
    SQL.Strings = (
      'select * from TipoMovimentoEstoque'
      ''
      'Where  TIPMOVEST_ENTRADASAIDA = '#39'Entrada'#39
      ''
      'Order By TipMovEst_Descricao;')
    Left = 309
    Top = 128
  end
  object DSTipoMovimentoEntrada: TDataSource
    DataSet = QTipoMovimentoEntrada
    Left = 344
    Top = 128
  end
  object DSLocalEntrada: TDataSource
    DataSet = DMGestao.QLocal
    Left = 96
    Top = 136
  end
end
